package com.focusai.efairy.business.location;

import android.content.Context;

import com.focusai.efairy.model.location.LocationManager;


public class LocationManagerFactory {
    public static final int TYPE_BD = 0;
    public static final int TYPE_AMAP = 1;
    public static final int TYPE_TENCENT = 2;

    public static final int ERROR_MOCK_LOCATION = -111;// open mock location error, should close in case of  cheat.

    private LocationManagerFactory() {
    }

    public static LocationManager getLocationManager(Context context) {
        return getLocationManager(context, TYPE_AMAP);
    }

    private static LocationManager getLocationManager(Context context, int type) {
        LocationManager lm = null;
        switch (type) {
            case TYPE_BD:
//                lm = new BaiduLocationManager();
                break;
            case TYPE_AMAP:
                lm = new AMapLocationManager();
                break;
            case TYPE_TENCENT:
//                lm = new TencentLocaMaptionManager(context);
                break;
            default:
                lm = new AMapLocationManager();
        }
        return lm;
    }

}
